Skip to content

feat!: require Node.js 24 - #268

Merged
dangreen merged 1 commit into
mainfrom
feat/require-node-24
Sep 26, 2026
Merged

dangreen merged 1 commit into
mainfrom
feat/require-node-24

Conversation

@dangreen

Copy link
Copy Markdown
Member

Why

Node.js 20 reached its end of life on 2026-04-30, and the tools of the repository do not run on it anymore: vitest 5 needs ^22.12.0 || ^24.0.0 || >=26.0.0, size-limit 14 ^22.19.0 || ^24.5.0 || >=26.0.0, astro 7 >=22.12.0. The engines of every package still said >=20, which nothing checked, since CI ran on Node.js 24 alone. The floor goes to 24 rather than 22 together with the 2.0.0 major, so the end of life of Node.js 22 on 2027-04-30 asks for no second breaking change.

What

  • engines.node is >=24 in the 20 published packages, the root and benchmarks.
  • .tool-versions pins Node.js 26.10.0, the latest 26, which becomes an LTS on 2026-10-28. Every actions/setup-node step reads it through node-version-file, so a bump of the file moves local development and CI together.
  • The unit job runs on a matrix of Node.js 24, the floor the packages declare, and the version of .tool-versions, and uploads coverage from the latter alone.

Notes

  • Breaking: the packages require Node.js 24 or newer. The commit carries the BREAKING CHANGE footer.
  • @types/node stays ^24, the floor, so the types catch an API of a newer Node.js.
  • Checked on Node.js 26.10.0: the workflows parse, lint-package-json passes, a frozen install gives no engine warnings and leaves the lockfile alone, the unit tests of kida, store and devtools pass, and size-limit of store measures the same bytes as on Node.js 24.

Node.js 20 is past its end of life, and the tools of the repository need Node.js 22
at least. The packages declare Node.js 24 in `engines`, the repository is developed
on Node.js 26 from `.tool-versions`, which every workflow reads now, and the unit
tests run on Node.js 24 and on that version.

BREAKING CHANGE: the packages require Node.js 24 or newer.
@codecov

codecov Bot commented Sep 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.76%. Comparing base (451da2c) to head (fefd325).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #268      +/-   ##
==========================================
+ Coverage   85.74%   85.76%   +0.02%     
==========================================
  Files         166      166              
  Lines        3766     3766              
  Branches      871      871              
==========================================
+ Hits         3229     3230       +1     
+ Misses        359      358       -1     
  Partials      178      178              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dangreen
dangreen merged commit c6ed062 into main Sep 26, 2026
11 checks passed
@dangreen
dangreen deleted the feat/require-node-24 branch September 26, 2026 19:16
@github-actions github-actions Bot mentioned this pull request Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant